﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace AzukiMap
{
    public static class AzukiMapSettings
    {
        public const string SERVER_BASE_URI = "http://localhost/AzukiMap/";
        public const string GET_POSTGISDATA = "/getGeomData.php";
        public const string DEFAULT_GETPOSTGISDATA_URI = SERVER_BASE_URI + GET_POSTGISDATA; 
        public const int DEFAULT_SRID = 4326;
        public const int DPI = 96;
        public const double DEFAULT_MAXSCALE = 999999999999999999;
        public const double DEFAULT_MINSCALE = 0;
        public const double DEFAULT_FILL_OPACITY = 0.5;
        public const int NO_IMAGE_TILE_WIDTH = 256;
        public const int NO_IMAGE_TILE_HEIGHT = 256;
        public const string NO_IMAGE_TILE = "http://farm.azukimap.jp/am/noImageTile.png";

        public static double InchesPerUnit(CoordinationUnits unit)
        {
            double[] _inchesPerUnit = new double[]{1, 12, 63360.0, 39.3701, 39370.1, 4374754};
            return _inchesPerUnit[(int)unit];
        }
    }

    public enum CoordinationUnits
    {
        INCHES = 0,
        FEET, 
        MILES, 
        METERS, 
        KILOMETERS, 
        DEGREES, 
    }
}
